home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 2
/
LIGHT-ROM 2 (Amiga Library Services)(1995).iso
/
programs
/
amiga
/
misc
/
demmer
/
readme
< prev
Wrap
Text File
|
1995-03-23
|
7KB
|
201 lines
DEMMER2
(c) COPYRIGHT 1992-1993 Bill McCarter All Rights Reserved
Legal:
This program is CRIPPLEWARE. Copy it and distribute it to your
friends, as long as you include all the files that are in the
archive file DEMMER2.lha. I will not allow anyone to make a
profit from this program, except a modest charge for copying and
media, such as the Fred Fish collection.
The program is fully operational except this public version
will not load compressed DEM files, so it will not edit VISTA
files that you already have.
If you do register you'll receive a fully working version
that includes the ability to load
compressed DEM files. You also will be on the list for any of the
other software titles that we have on the go or that have been
produced already.
PURPOSE:
The purpose of this utility is to be able to take an IFF
graphic and transform it to a format readable by VISTAPRO. I
wanted to have a freeform method to produce landscapes and to
have an easy way to digitize topo maps rather than relying on
someone else to supply me with USGS data. VISTAPRO provides an
excellent engine for the development of realistic landscape
images.
There are also a few extra features that I added to provide
some image processing to smooth out transitions.
HOW IT WORKS:
Any IFF graphic of any resolution may be used, in any
screensize as long as you have the chip ram. Even Brushes may be
used. Other numbers of colours than 64 work but I don't recommend
to use them. 64 colour halfbright ILBM's produce the best results
and HAM works but the effects are unperdictable.
If you are serious about graphics then
you owe it to yourself to get a program like Pixmate or ADPro
anyway to do any format conversions.
The image is automatically scaled to a 258 X 258 array and
then converted. The elevations are taken from the colours
themselves, with palette 0 being the minimum elevation and
palette 63 being the maximum. This provides 64 steps in elevation
for the image which should be enough for most applications. If
not, there are a few processing functions that I have provided to
smooth out the transitions.
I did supply a colourmap palette in the output file so when
you use the landscape file in Vistapro you will have a palette.
OPERATION:
The program starts with a requester screen with gadgets for
all the available commmands.
GADGETS:
QUIT:
This should be rather obvious.
LOAD ILBM:
This command will present you with the standard AMOS requester so that
you can choose the ILBM that you want to convert. The ILBM is then converted
to the internal format for processing.
LOAD DEM:
This will present you with the standard AMOS requester so that you can
choose a Vista DEM file to edit. ( Not supported in the Shareware version. )
SAVE DEM:
This saves the internal format ILBM into a VISTA DEM file. This file
is not compressed, if you want it to work properly in all instances in
VISTAPRO load it into VISTAPRO and save it out again.
CONTOUR:
This is probably the most usefull feature of this program. This will
present you with the standard requester so that you can load in a contour
ILBM. Load in the example ILBM "TUTOR_ILBM" and watch and wait. The way to
make your own contour map is to start a Extra Halfbrite picture on a paint
program such as Deluxe Paint. This pic can be as large as you want. I usually
make one about 640 X 640 although any square size is legitimate. Colour 0
is used for the background and colour 1 is used for the grid. I then draw
in the contours using the UTM grid as a guideline. One only needs to draw
in every fifth line or so and the program will fill in the spaces. This is
a very fast way to create your own map.
CUT 514:
This will take an ILBM and cut it into 4 parts so that it is easier to
create dems in the Large and Huge formats. The parts are resaved with the
suffixs 1, 2, 3, 4 into the same directory that the original ILBM was called.
FILENAME:
Click in tis box to acitvate it and then enter the name of
your file. The default name is ILBMPIC.
COMMENT:
Click in this box to enter any comments you want saved with
the file.
MAXIMUM ELEVATION:
Enter the maximum elevation encountered in your map, this is
in meters and will not be accepted for values over 16000.
MINIMUM ELEVATION:
Enter the minimum elevation, this is in meters and will not
be accepted below 0.
SCALE:
This is the measure of the side of your ILBM in meters. If
your picture represents an area 10 KM X 10 KM then enter 10000
into scale.
IMAGE PROCESSING:
NONE:
This is the fastest processing and results in discrete
steps.
LINEAR:
This takes a very long time and smooths out the
transitions the most. The more complex the picture the faster it
works as it searches the IFF for changes in elevation and does a
linear interpolation. It works faster now as I use integer math.
I'm working on another algorithm to make a smoother result and
this will be included in the registered version. This works best if
called twice.
3X3
This looks at a 3 by 3 matrix and inserts the average
value into the center. The arrows adjust the center weight so
you can vary the effect the surrounding pixels have. A value of 0
has the most smoothing effect and 99 the least.
5X5
This looks at a 5 by 5 matrix and inserts the average
value into the center. The arrows adjust the center weight so
you can vary the effect the surrounding pixels have. A value of 0
has the most smoothing effect and 99 the least.
DO SMOOTHING:
Once you are happy with the settings selecting DO SMOOTHING will
start the image processing.
MANUAL EDIT:
This opens up a whole new screen where you can adjust the DEM
pixel by pixel. This new screen is a super bitmap and may be
scrolled around in by moving the mouse to where you want to go.
EXIT:
This will return you to the operations screen.
The left side of the screen has a column of all the screen
colours in order from 0 at the bottom to 63 at the top.
On the bottom is a zoom box to show the colours under the
pointer. If you click on a spot on the map the values within the
yellow square on the zoom box are presented. Click on these
boxes to change the individual elevation values. You have to
press return for the value to be accepted.
MULTITASKING:
This program multitasks well. To toggle to and from workbench
press Left Amiga-A. To kill the program at any time type
Control-C.
If you like this or if you would like anything else in the
programming line in C, assembly or AMOS or have an interest in
mining and mineral processing or design engineering, including
digital design please drop me a line to:
GYRUS SOFTWARE GROUP
Bill McCarter
P.O. Box 250
LILLOOET, BRITISH COLUMBIA,
CANADA,
V0K 1V0
or COMPU$ERVE 72570,3622.
VISTAPRO (C) is a COPYRIGHT of Virtual Reality Laboratories,Inc
Pixmate (c) is a COPYRIGHT of Progressive Peripherals Inc AMOS
(c) is a Copyright of Mandarin Jawx and is a fantastic way to
access the power of the Amiga.